package game.entity.behavior;

import edu.monash.fit2099.engine.*;
import game.util.LocationUtil;

/**
 * A class that figures out a MoveAction that will move the actor one step 
 * closer to a target Actor.
 */
public class SleepBehaviour implements Behaviour {

	private Actor target;

	/**
	 * Constructor.
	 *
	 * @param subject the Actor to follow
	 */
	public SleepBehaviour(Actor subject) {
		this.target = subject;
	}

	@Override
	public Action getAction(Actor actor, GameMap map) {
		Location location = map.locationOf(target);
		String locationPrettyString = LocationUtil.getLocationPrettyString(location);
		System.out.println(locationPrettyString + target+" is sleeping");
		return new DoNothingAction();
	}

}